<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>WKWebView JS Interaction</title>
</head>
<body>
    <button id="jsButton">发消息给客户端</button>
    <script>
        document.getElementById('jsButton').addEventListener('click', function() {
            window.webkit.messageHandlers.nativeBridge.postMessage('Hello from JavaScript!');
        });
    </script>
</body>
</html>
